home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <TITLE>card file</TITLE>
- </HEAD>
-
- <SCRIPT LANGUAGE="JavaScript">
-
- var L=new layerTool();
- function layerTool()
- {
- if (navigator.appName=="Netscape")
- this.layerProp=navProp;
- else
- this.layerProp=exProp;
- }
- function exProp()
- {
- return document.all[arguments[arguments.length-1]].style;
- }
- function navProp()
- {
- retVal="";
- for (var x=0;x<arguments.length;x++)
- {
- retVal+="document.layers[\'"+arguments[x]+"\']";
- if (x!=arguments.length-1)
- retVal+=".";
- }
- return eval(retVal);
- }
- function layerObject(layerID,z)
- {
- this.layerID=layerID;
- this.depth=z;
- this.oldDepth=z;
- this.draw=drawLayer;
- this.setZorder=setZorder;
- }
- function setZorder(z)
- {
- this.depth=z;
- }
- function drawLayer()
- {
- L.layerProp(this.layerID).zIndex=this.depth;
- }
- function noteManager()
- {
- this.LayerList=new Array();
- this.add=addLayer;
- this.select=select;
- }
- function addLayer(layerObject)
- {
- this.LayerList[this.LayerList.length]=layerObject;
- }
- function select(LayerName)
- {
- for (x=0;x<this.LayerList.length;x++)
- {
- if (this.LayerList[x].layerID==LayerName)
- {
- if (this.LayerList[x].depth==100)
- {
- this.LayerList[x].setZorder(this.LayerList[x].oldDepth);
- }
- else
- {
- this.LayerList[x].setZorder(100);
- }
- }
- else
- {
- this.LayerList[x].setZorder(this.LayerList[x].oldDepth);
- }
- this.LayerList[x].draw();
- }
- }
- function init()
- {
- tm=new noteManager();
- for (x=1;x<=5;x++)
- {
- tm.add(new layerObject("note"+x,x));
- }
- }
- </SCRIPT>
- <STYLE TYPE="text/css">
- #note1{
- TOP: 100px;
- Z-ORDER: 1
- }
- #note2{
- TOP: 130px;
- LEFT: 60px;
- Z-ORDER: 2
- }
- #note3{
- TOP: 160px;
- LEFT: 110px;
- Z-ORDER: 3
- }
- #note4{
- TOP: 190px;
- LEFT: 160px;
- Z-ORDER: 4
- }
- #note5{
- TOP: 220px;
- LEFT: 210px;
- Z-ORDER: 5
- }
-
- .shuffleClass{
- POSITION: absolute;
- BACKGROUND: green;
- VISIBILITY: visible;
- LEFT: 10px;
- WIDTH:150px
- }
- ink, A:visited, A:active {
- COLOR:blue;
- FONT-WEIGHT:bold;
- FONT-FAMILY: sans-serif;
- TEXT-DECORATION: none
- }
-
- </STYLE>
- <BODY BGCOLOR="#000000" ONLOAD="init()">
-
- <DIV ID="note1" CLASS="shuffleClass">
- <TABLE HEIGHT=200 WIDTH=150 BGCOLOR=GREEN CELLPADDING=10 BORDER=1>
- <TR><TD VALIGN=TOP>
- <A HREF="JavaScript:tm.select('note1');">About Us</A>
- <P>
- links and information
- </P>
- </TD></TR>
- </TABLE>
- </DIV>
-
- <DIV ID="note2" CLASS="shuffleClass">
- <TABLE HEIGHT=200 WIDTH=150 BGCOLOR=GREEN CELLPADDING=10 BORDER=1>
- <TR><TD VALIGN=TOP>
- <A HREF="JavaScript:tm.select('note2');">Clients</A>
- <P>
- links and information
- </P>
- </TD></TR>
- </TABLE>
- </DIV>
-
- <DIV ID="note3" CLASS="shuffleClass">
- <TABLE HEIGHT=200 WIDTH=150 BGCOLOR=GREEN CELLPADDING=10 BORDER=1>
- <TR><TD VALIGN=TOP>
- <A HREF="JavaScript:tm.select('note3');">Freebies</A>
- <P>
- links and information
- </P>
- </TD></TR>
- </TABLE>
- </DIV>
-
- <DIV ID="note4" CLASS="shuffleClass">
- <TABLE HEIGHT=200 WIDTH=150 BGCOLOR=GREEN CELLPADDING=10 BORDER=1>
- <TR><TD VALIGN=TOP>
- <A HREF="JavaScript:tm.select('note4');">Links</A>
- <P>
- links and information
- </P>
- </TD></TR>
- </TABLE>
- </DIV>
-
- <DIV ID="note5" CLASS="shuffleClass">
- <TABLE HEIGHT=200 WIDTH=150 BGCOLOR=GREEN CELLPADDING=10 BORDER=1>
- <TR><TD VALIGN=TOP>
- <A HREF="JavaScript:tm.select('note1');">Welcome</A>
- <P>
- links and information
- </P>
- </TD></TR>
- </TABLE>
- </DIV>
-
- </BODY>
- </HTML>
-